﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
    Inherits="System.Web.Mvc.ViewPage<Beeldbankmvc.ViewModels.SearchViewModel>" %>

<%@ Import Namespace="Beeldbankmvc.Code" %>
<%@ Import Namespace="Beeldbankmvc.Controllers" %>
<%@ Import Namespace="Beeldbankmvc.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">Zoekplaatjes</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="<%=AppHelper.getContent("~/Content/js/searchScripts.js") %>" type="text/javascript"></script>

    <div class="page-title">
        <h1>Zoekplaatjes</h1>
        <h2>In ons archief ontbreken van een deel van de collectie de gegevens. Iedereen die denkt meer informatie te hebben wordt uitgenodigd deze informatie hier toe te voegen.</h2>
        <h2 style="color:red;">Alleen geregistreerde en ingelogde gebruikers die duidelijk teruggevonden kunnen worden mogen de gegevens aanvullen. Alle overige reacties worden zonder meer verwijderd.</h2>
    </div>

    <%     
        string displayModeClass = Request.QueryString["displayMode"];
        if (string.IsNullOrEmpty(displayModeClass)) displayModeClass = "2";
        displayModeClass = "displayMode" + displayModeClass;
    %>

    <div class="page-content <%=displayModeClass %>" id="searchpage">
        <form method="get" action="" class="custom-search">
            <fieldset>

                <legend>Zoek opties voor mediaobjecten</legend>

                <label><%: Model.NumberOfResults %> resultaten gevonden voor:</label><br />
                <a tabindex="10" class="custom-help" href="/Miscellaneous/FAQ" title="Help" rel="#search1">
                    <img class="help-icon" src="<%= AppHelper.getContent("~/Content/images/help.gif")%>" alt="Help icon" /></a>
                <input tabindex="8" placeholder="Zoekterm" type="text" id="searchBox" name="SearchCriteria" value="<%:Request.QueryString["SearchCriteria"] %>" title="Geef een of meerdere zoektermen op, of zoek op nummer met IDxxx waarbij xxx het gezochte foto- of filenummer bevat." />
                <button tabindex="9" class="searchbutton" title="Geef een of meerdere zoektermen op, of zoek op nummer met IDxxx waarbij xxx het gezochte foto- of filenummer bevat." type="submit">Zoeken</button>

                <input type="hidden" id="statusId" name="statusId" value="<%=Request.QueryString["statusId"] %>" />
                
                <% if (Roles.IsUserInRole("redactieCDR"))
                   { %>
                <div class="resultCopy">
                    <a id="copy-button" href="#">Kopieer deze resultaatpagina</a>
                </div>
                <% } %>
            </fieldset>


            <% if (!String.IsNullOrEmpty(Request.QueryString["SearchCriteria"]))
               { %>
            <div class="facetdel">
                <%:Html.ActionLink("Zoekwoord : " + Request.QueryString["SearchCriteria"], "ZoekplaatjeIndex", "Search", new
                    {
                        SearchCriteria = "",
                        OrderBy = Request.QueryString["OrderBy"],
                        displayMode = Request.QueryString["displayMode"],
                        statusId = Request.QueryString["statusId"]
                    }, new { title = "Zoekwoord facet verwijderen" })%>
            </div>
            <% } %>


            <% if (!String.IsNullOrEmpty(Request.QueryString["typeAnaloog"]) || !String.IsNullOrEmpty(Request.QueryString["typeDigitaal"]) || !String.IsNullOrEmpty(Request.QueryString["typeVideoAnimation"]) || !String.IsNullOrEmpty(Request.QueryString["typeMapIllustration"]))
               {
                   String mediaTypeDescription = "";
                   if (!String.IsNullOrEmpty(Request.QueryString["typeAnaloog"]) && Request.QueryString["typeAnaloog"].Equals("True"))
                   {
                       mediaTypeDescription = "Analoge foto";
                   }

                   if (!String.IsNullOrEmpty(Request.QueryString["typeDigitaal"]) && Request.QueryString["typeDigitaal"].Equals("True"))
                   {
                       mediaTypeDescription = "Digitale foto";
                   }

                   if (!String.IsNullOrEmpty(Request.QueryString["typeVideoAnimation"]) && Request.QueryString["typeVideoAnimation"].Equals("True"))
                   {
                       mediaTypeDescription = "Video/Animatie";
                   }

                   if (!String.IsNullOrEmpty(Request.QueryString["typeMapIllustration"]) && Request.QueryString["typeMapIllustration"].Equals("True"))
                   {
                       mediaTypeDescription = "Kaart/Illustratie";
                   }                                                                     
                                         
            %>
            <div class="facetdel">
                <%:Html.ActionLink("MediaType : " + mediaTypeDescription, "ZoekplaatjeIndex", "Search", new
                {
                    SearchCriteria = "",
                    OrderBy = Request.QueryString["OrderBy"],
                    displayMode = Request.QueryString["displayMode"],
                    statusId = Request.QueryString["statusId"]
                }, new { title = "MediaType facet verwijderen" })%>
            </div>
            <% } %>

            <% if (!String.IsNullOrEmpty(Request.QueryString["fromDate"]))
               {
                   int yearIndexDel = 1;
                   String selectedYearFacetName = "";
                   foreach (var YearFacet in Model.YearFacetsAll)
                   {
                       if (Request.QueryString["fromDate"].EndsWith(YearFacet.ToString()))
                       {
                           selectedYearFacetName = YearFacet.ToString();
                       }
                       yearIndexDel++;
                   }
            %>
            <div class="facetdel">
                <%:Html.ActionLink("Jaar : " + selectedYearFacetName, "ZoekplaatjeIndex", "Search", new
                {
                    SearchCriteria = Request.QueryString["SearchCriteria"],
                    OrderBy = Request.QueryString["OrderBy"],
                    displayMode = Request.QueryString["displayMode"],
                    statusId = Request.QueryString["statusId"]
                }, new { title = "Jaar facet verwijderen" })%>
            </div>
            <% } %>

            <% if (!String.IsNullOrEmpty(Request.QueryString["collectionId"]))
               {
                   int themaIndexDel = 1;
                   String selectedThemaFacetName = "";
                   foreach (var ThemaFacet in Model.ThemaFacetsAll)
                   {
                       if (Request.QueryString["collectionId"].Equals(ThemaFacet.Id.ToString()))
                       {
                           selectedThemaFacetName = ThemaFacet.Name;
                       }
                       themaIndexDel++;
                   }
            %>
            <div class="facetdel">
                <%:Html.ActionLink("Thema : " + selectedThemaFacetName, "ZoekplaatjeIndex", "Search", new
                {
                    SearchCriteria = Request.QueryString["SearchCriteria"],
                    OrderBy = Request.QueryString["OrderBy"],
                    displayMode = Request.QueryString["displayMode"],
                    statusId = Request.QueryString["statusId"]
                }, new { title = "Thema facet verwijderen" })%>
            </div>
            <% } %>

            <div class="clear"></div>


            <div id="customMobileDisplayToggle">Toon weergaveopties</div>
            <div class="divshowing" id="customDisplayOptions">

                <div class="searchpagekolomfaceted">
                    <p>
                        <label for="OrderBy" class="displaynone">
                            Sorteren</label>
                        <select id="OrderBy" name="OrderBy">
                            <option <% if (Request.QueryString["OrderBy"] == null)
                                       {%>
                                selected="selected" <%}%> value="null">- Kies sortering -</option>
                            <option <% if (Request.QueryString["OrderBy"] != null && Convert.ToString(Request.QueryString["OrderBy"]).Equals("3") == true)
                                       {%>
                                selected="selected" <%}%> value="3">Relevantie</option>
                            <option <% if (Request.QueryString["OrderBy"] != null && Convert.ToString(Request.QueryString["OrderBy"]).Equals("1") == true)
                                       {%>
                                selected="selected" <%}%> value="1">Inventaris</option>
                            <option <% if (Request.QueryString["OrderBy"] != null && Convert.ToString(Request.QueryString["OrderBy"]).Equals("5") == true)
                                       {%>
                                selected="selected" <%}%> value="5">Inventaris aflopend</option>
                            <option <% if (Request.QueryString["OrderBy"] != null && Convert.ToString(Request.QueryString["OrderBy"]).Equals("2") == true)
                                       {%>
                                selected="selected" <%}%> value="2">Datum</option>
                            <option <% if (Request.QueryString["OrderBy"] != null && Convert.ToString(Request.QueryString["OrderBy"]).Equals("6") == true)
                                       {%>
                                selected="selected" <%}%> value="6">Datum aflopend</option>
                            <option <% if (Request.QueryString["OrderBy"] != null && Convert.ToString(Request.QueryString["OrderBy"]).Equals("7") == true)
                                       {%>
                                selected="selected" <%}%> value="7">Recent gewijzigd</option>
                            <option <% if (Request.QueryString["OrderBy"] != null && Convert.ToString(Request.QueryString["OrderBy"]).Equals("8") == true)
                                       {%>
                                selected="selected" <%}%> value="8">Recent toegevoegd</option>
                        </select>&nbsp;<a name="HelpVideo7" href="/Miscellaneous/FAQ" title="Help" rel="#search2"><img class="help-icon" src="<%= AppHelper.getContent("~/Content/images/help.gif")%>" alt="Help icon" /></a>
                        <br />
                    </p>
                </div>

                <div class="paginas">
                    <p>
                        <%
                            int startPagingFrom = Convert.ToInt32(Request.QueryString["startPagingFrom"]);
                            int currentPage = Convert.ToInt32(Request.QueryString["page"]);

                            int imagesPerPage = 20;
                            if (Request.QueryString["displayMode"] != null)
                            {
                                switch (int.Parse(Request.QueryString["displayMode"]))
                                {
                                    case 1:
                                        imagesPerPage = 10;
                                        break;
                                    case 2:
                                        imagesPerPage = 20;
                                        break;
                                    case 3:
                                        imagesPerPage = 80;
                                        break;
                                }
                            }
                            int i = startPagingFrom;
                            int maxPages = 10 + startPagingFrom;

                            if (startPagingFrom >= 10)
                            {
                        %>
                        <%:Html.ActionLink("<<", "ZoekplaatjeIndex", "Search", new
{
                        startPagingFrom = startPagingFrom-10,
                        page = i,
                        SearchCriteria = Request.QueryString["SearchCriteria"],
                        OrderBy = Request.QueryString["OrderBy"],
                        displayMode = Request.QueryString["displayMode"],
                        statusId = Request.QueryString["statusId"]
                        }, null)%>
                        <%
                            }

                            if (startPagingFrom >= 1)
                            {    
                        %>
                        <%:Html.ActionLink("<", "ZoekplaatjeIndex", "Search", new
                    {
                        startPagingFrom = startPagingFrom-1,
                        page = i,
                        SearchCriteria = Request.QueryString["SearchCriteria"],
                        OrderBy = Request.QueryString["OrderBy"],
                        displayMode = Request.QueryString["displayMode"],
                        statusId = Request.QueryString["statusId"]
                        }, null)%>
                        <%             
                            }
                            while (Model.NumberOfResults > i * imagesPerPage && i < maxPages)
                            {
                        %>
                        <%:Html.ActionLink(i.ToString(), "ZoekplaatjeIndex", "Search", new
                    {
                        startPagingFrom = startPagingFrom, 
                        page = i,
                        SearchCriteria = Request.QueryString["SearchCriteria"],
                        OrderBy = Request.QueryString["OrderBy"],
                        displayMode = Request.QueryString["displayMode"],
                        statusId = Request.QueryString["statusId"]
                        }, null)%>&nbsp;
                    <%
                                i++;
                            }
                    %>
                        <%
                            if (Model.NumberOfResults / imagesPerPage > currentPage)
                            { 
                        %>
                        <%:Html.ActionLink(">", "ZoekplaatjeIndex", "Search", new
                    {
                        startPagingFrom = startPagingFrom + 1,
                        page = currentPage + 1,
                        SearchCriteria = Request.QueryString["SearchCriteria"],
                        OrderBy = Request.QueryString["OrderBy"],
                        displayMode = Request.QueryString["displayMode"],
                        statusId = Request.QueryString["statusId"]
                    }, null)%>
                        <% } %>
                        <%
                            if (Model.NumberOfResults > i * imagesPerPage)
                            {        
                        %>
                        <%:Html.ActionLink(">>", "ZoekplaatjeIndex", "Search", new
                    {
                        startPagingFrom = startPagingFrom + 10,
                        page = i,
                        SearchCriteria = Request.QueryString["SearchCriteria"],
                        OrderBy = Request.QueryString["OrderBy"],
                        displayMode = Request.QueryString["displayMode"],
                        statusId = Request.QueryString["statusId"]
                    }, null)%>
                        <% } %>
                    </p>
                </div>
                <div class="weergave">
                    <p>
                        <%
                            string listButton = "";
                            string galleryButton = "";
                            string gridButton = "";

                            listButton = "<img src=\"" + AppHelper.getContent("~/Content/images/result-list-off.gif") + "\" alt=\"Detail weergave\" />";
                            galleryButton = "<img src=\"" + AppHelper.getContent("~/Content/images/result-gallery-off.gif") + "\" alt=\"Overzicht weergave\"/>";
                            gridButton = "<img src=\"" + AppHelper.getContent("~/Content/images/result-grid-off.gif") + "\" alt=\"Lichtbak weergave\"/>";

                            if (Request.QueryString["displayMode"] != null)
                            {
                                switch (Request.QueryString["displayMode"])
                                {
                                    case "1":
                                        listButton = "<img src=\"" + AppHelper.getContent("~/Content/images/result-list-on.gif") + "\" alt=\"Detail weergave\" />";
                                        break;
                                    case "2":
                                        galleryButton = "<img src=\"" + AppHelper.getContent("~/Content/images/result-gallery-on.gif") + "\" alt=\"Overzicht weergave\" />";
                                        break;
                                    case "3":
                                        gridButton = "<img src=\"" + AppHelper.getContent("~/Content/images/result-grid-on.gif") + "\" alt=\"Lichtbak weergave\" />";
                                        break;
                                }
                            }
                            else
                            {
                                galleryButton = "<img src=\"" + AppHelper.getContent("~/Content/images/result-gallery-on.gif") + "\" alt=\"Overzicht weergave\" />";
                            }
                        %>
                        <% 
                            // todo: move this logic to the model
                            // compensation for amount of images per page
                            int startPagingFrom_ToType1 = 0;
                            int currentPage_ToType1 = 0;

                            int startPagingFrom_ToType2 = 0;
                            int currentPage_ToType2 = 0;

                            int startPagingFrom_ToType3 = 0;
                            int currentPage_ToType3 = 0;

                            if (Request.QueryString["displayMode"] != null)
                            {
                                switch (int.Parse(Request.QueryString["displayMode"]))
                                {
                                    case 1:
                                        startPagingFrom_ToType1 = startPagingFrom;
                                        currentPage_ToType1 = currentPage;

                                        startPagingFrom_ToType2 = startPagingFrom / 2;
                                        currentPage_ToType2 = currentPage / 2;

                                        startPagingFrom_ToType3 = startPagingFrom / 4;
                                        currentPage_ToType3 = currentPage / 4;
                                        break;
                                    case 2:
                                        startPagingFrom_ToType1 = startPagingFrom * 2;
                                        currentPage_ToType1 = currentPage * 2;

                                        startPagingFrom_ToType2 = startPagingFrom;
                                        currentPage_ToType2 = currentPage;

                                        startPagingFrom_ToType3 = startPagingFrom / 2;
                                        currentPage_ToType3 = currentPage / 2;
                                        break;
                                    case 3:
                                        startPagingFrom_ToType1 = startPagingFrom * 4;
                                        currentPage_ToType1 = currentPage * 4;

                                        startPagingFrom_ToType2 = startPagingFrom * 2;
                                        currentPage_ToType2 = currentPage * 2;

                                        startPagingFrom_ToType3 = startPagingFrom;
                                        currentPage_ToType3 = currentPage;
                                        break;
                                }
                            }
                        %>
                        <%=Html.ActionLink("_ph_", "ZoekplaatjeIndex", "Search", new
                        {
                            startPagingFrom = startPagingFrom_ToType1,
                            page = currentPage_ToType1,
                            SearchCriteria = Request.QueryString["SearchCriteria"],
                            OrderBy = Request.QueryString["OrderBy"],
                            displayMode = "1",
                            statusId = Request.QueryString["statusId"]
                        }, null).ToString().Replace("_ph_", listButton)%>&nbsp;
                    <%=Html.ActionLink("_ph_", "ZoekplaatjeIndex", "Search", new
                        {
                            startPagingFrom = startPagingFrom_ToType2,
                            SearchCriteria = Request.QueryString["SearchCriteria"],
                            OrderBy = Request.QueryString["OrderBy"],
                            displayMode = "2",
                            statusId = Request.QueryString["statusId"]
                        }, null).ToString().Replace("_ph_", galleryButton)%>&nbsp;
                    <%=Html.ActionLink("_ph_", "ZoekplaatjeIndex", "Search", new
                        {
                            startPagingFrom = startPagingFrom_ToType3,
                            page = currentPage_ToType3,
                            SearchCriteria = Request.QueryString["SearchCriteria"],
                            OrderBy = Request.QueryString["OrderBy"],
                            displayMode = "3",
                            statusId = Request.QueryString["statusId"]
                        }, null).ToString().Replace("_ph_", gridButton)%>&nbsp;
                    </p>
                </div>
            </div>


        </form>

        <%
            int width = 150;
            int cellWidth = 165;
            int fotosPerRegel = 4;

            if (Request.QueryString["displayMode"] != null)
            {
                switch (int.Parse(Request.QueryString["displayMode"]))
                {
                    case 1:
                        width = 188;
                        fotosPerRegel = 1;
                        cellWidth = 663;
                        break;
                    case 2:
                        width = 150;
                        fotosPerRegel = 4;
                        cellWidth = 165;
                        break;
                    case 3:
                        width = 65;
                        fotosPerRegel = 8;
                        cellWidth = 84;
                        break;
                }
            }
        %>
        <% 
            int index = 0;
            foreach (BEELDBANK_MEDIAOBJECT mediaobject in Model.mediaobjects)
            {
        %>
        <% 
                if (Request.QueryString["displayMode"] != null && int.Parse(Request.QueryString["displayMode"]) == 1)
                {
        %>
        <div class="lijstlinks">
            <div class="lijstlinks">
                <%=Url.Image<HomeController>(c => c.DisplayThumb(mediaobject.Id.ToString()), width, AppHelper.convertHtmlStringToAltTag(mediaobject), AppHelper.convertHtmlStringToAltTag(mediaobject), AppHelper.getContent("~/MediaObject/Details/" + AppHelper.convertToUrlTitle(mediaobject.Omschrijving, mediaobject.Id) + "?resultType=" + TempData["resultIdType"] + "&resultList=" + TempData["resultIdList"]))%>
            </div>
            <div class="lijstweergave">
                <div class="listdata">
                </div>
                <div class="lijsttitel">
                    <strong>Inventaris nr.</strong>
                </div>
                <div class="lijstdata">
                    <%: mediaobject.Titel%>
                </div>
                <div class="lijsttitel">
                    <strong>Omschrijving</strong>
                </div>
                <div class="lijstdata">
                    <%= mediaobject.Omschrijving%>
                </div>
                <div class="lijsttitel">
                    <strong>Trefwoorden</strong>
                </div>
                <div class="lijstdata">
                    <%: mediaobject.Trefwoorden%>
                </div>
                <div class="lijsttitel">
                    <strong>Datum</strong>
                </div>
                <div class="lijstdata">
                    <%: String.Format("{0:d}", mediaobject.Datum_Realisatie)%>
                </div>
            </div>
        </div>
        <%
                }
                else
                {
        %>
        <% if (index == 0)
           {%>
        <div class="weergavefoto">
            <% } %>
            <% else if (index % fotosPerRegel == 0)
           { %>
        </div>
        <div class="weergavefoto">
            <% } %>
            <div class="weergavefoto">
                <%=Url.Image<HomeController>(c => c.DisplayThumb(mediaobject.Id.ToString()), width, AppHelper.convertHtmlStringToAltTag(mediaobject), AppHelper.convertHtmlStringToAltTag(mediaobject), AppHelper.getContent("~/MediaObject/Details/" + AppHelper.convertToUrlTitle(mediaobject.Omschrijving, mediaobject.Id) + "?resultType=" + TempData["resultIdType"] + "&resultList=" + TempData["resultIdList"]))%>
                <% 
           // only display title for viewmode2
           if ((Request.QueryString["displayMode"] != null && int.Parse(Request.QueryString["displayMode"]) == 2) || Request.QueryString["displayMode"] == null)
           { %>
                <div>
                    <%: Html.ActionLink(Beeldbankmvc.Helpers.Tools.getMaxLengthVersion(mediaobject.Titel, 20), "Details", "MediaObject", new { id = AppHelper.convertToUrlTitle(mediaobject.Omschrijving, mediaobject.Id) }, null)%>
                </div>
                <% } %>
            </div>
            <% } %>
            <% 
                index++;
            } %>
            <% 
                if (Request.QueryString["displayMode"] != "1" && Model.NumberOfResults != 0)
                {
            %>
        </div>
        <% } %>
        <div class="divshowing">
            <div class="paginas">
                <p>
                    <%
                        int startPaging2From = Convert.ToInt32(Request.QueryString["startPagingFrom"]);
                        int current2Page = Convert.ToInt32(Request.QueryString["page"]);

                        int images2PerPage = 20;
                        if (Request.QueryString["displayMode"] != null)
                        {
                            switch (int.Parse(Request.QueryString["displayMode"]))
                            {
                                case 1:
                                    images2PerPage = 10;
                                    break;
                                case 2:
                                    images2PerPage = 20;
                                    break;
                                case 3:
                                    images2PerPage = 80;
                                    break;
                            }
                        }
                        int i2 = startPaging2From;
                        int max2Pages = 10 + startPaging2From;

                        if (startPaging2From >= 10)
                        {
                    %>
                    <%:Html.ActionLink("<<", "ZoekplaatjeIndex", "Search", new
                        {
                            startPagingFrom = startPaging2From-10,
                            page = i2,
                            SearchCriteria = Request.QueryString["SearchCriteria"],
                            OrderBy = Request.QueryString["OrderBy"],
                            displayMode = Request.QueryString["displayMode"],
                            statusId = Request.QueryString["statusId"]
                        }, null)%>
                    <%
                        }

                        if (startPaging2From >= 1)
                        {    
                    %>
                    <%:Html.ActionLink("<", "ZoekplaatjeIndex", "Search", new
                        {
                            startPagingFrom = startPaging2From-1,
                            page = i2,
                            SearchCriteria = Request.QueryString["SearchCriteria"],
                            OrderBy = Request.QueryString["OrderBy"],
                            displayMode = Request.QueryString["displayMode"],
                            statusId = Request.QueryString["statusId"]
                        }, null)%>
                    <%             
                        }
                        while (Model.NumberOfResults > i2 * images2PerPage && i2 < maxPages)
                        {
                    %>
                    <%:Html.ActionLink(i2.ToString(), "ZoekplaatjeIndex", "Search", new
                        {
                            startPagingFrom = startPaging2From, 
                            page = i2,
                            SearchCriteria = Request.QueryString["SearchCriteria"],
                            OrderBy = Request.QueryString["OrderBy"],
                            displayMode = Request.QueryString["displayMode"],
                            statusId = Request.QueryString["statusId"]
                        }, null)%>&nbsp;
                    <%
                            i2++;
                        }
                    %>
                    <%
                        if (Model.NumberOfResults / images2PerPage > currentPage)
                        { 
                    %>
                    <%:Html.ActionLink(">", "ZoekplaatjeIndex", "Search", new
                        {
                            startPagingFrom = startPaging2From + 1,
                            page = currentPage + 1,
                            SearchCriteria = Request.QueryString["SearchCriteria"],
                            OrderBy = Request.QueryString["OrderBy"],
                            displayMode = Request.QueryString["displayMode"],
                            statusId = Request.QueryString["statusId"]
                        }, null)%>
                    <% } %>
                    <%
                        if (Model.NumberOfResults > i2 * images2PerPage)
                        {        
                    %>
                    <%:Html.ActionLink(">>", "ZoekplaatjeIndex", "Search", new
                        {
                            startPagingFrom = startPaging2From + 10,
                            page = i2,
                            SearchCriteria = Request.QueryString["SearchCriteria"],
                            OrderBy = Request.QueryString["OrderBy"],
                            displayMode = Request.QueryString["displayMode"],
                            statusId = Request.QueryString["statusId"]
                        }, null)%>
                    <% } %>
                </p>
            </div>
        </div>
    </div>
    <!-- Last cached: <%: DateTime.Now %> -->
</asp:Content>
